//
//  CiotManagerDelegate.swift
//  casdon_swiftUI
//
//  Created by casdon on 2025/5/22.
//

import Foundation

protocol CiotManagerDelegate: AnyObject {
    func didDiscoverPeripherals(_ peripherals: [Peripheral], provisioner: CiotBLEProvisioner)
    func updateState(_ state: BLEProvisioningState, provisioner: CiotBLEProvisioner)
    
    func connect(uuid: String, ssid: String, pass: String) -> Ciot_res
    func connected(uuid: String, ssid: String, pass: String)  -> Ciot_res
    func disConnected(uuid: String, ssid: String, pass: String) -> Ciot_res

    
    func wr_ready() -> Ciot_res
    func message_received(characteristicValue: Data) -> Ciot_res
    
    func scanResult(uuid: String, rspData: Data, ssid: String, encrypted: Bool) -> Ciot_res
}
